import type * as Common from "./type"
import { request } from "@/http/axios"

/** 获取下拉框列表 */
export function fetchEnumSelectList(selectName: string) {
  return request<Common.SelectResponseData>({
    url: `/common/selectEnums/${selectName}`,
    method: "get"
  })
}

/** 获取下拉框列表 */
export function fetchSelectList(type: string) {
  return request<Common.SelectResponseData>({
    url: `/common/selectByType/${type}`,
    method: "get"
  })
}
